package com.zkyc.framework.schedulejob.client;

import com.zkyc.framework.common.constant.Constant;
import com.zkyc.framework.common.vo.ResultVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;


@Service
@FeignClient(value = Constant.SERVICE_WEBSITE, contextId = "clientMsgService", fallback = ClientMsgClientFallBack.class)
@RequestMapping("clientMsg")
public interface ClientMsgClient {

    @GetMapping("/list")
    ResultVO<?> list(@RequestParam(value = "search", required = false, defaultValue = "") String search,
                     @RequestParam(value = "current", required = false, defaultValue = "-1") int current,
                     @RequestParam(value = "size", required = false, defaultValue = "-1") int size);

}
